package com.kbt.listener;

import android.view.View;
import android.widget.PopupWindow;

/**
 * @author zhgk
 * @package: com.kbt.listener
 * @TODO: 点击关闭图片时执行的事件
 * @data: 2015/8/11 12:36
 * @version: V1.0
 */
public class ClickDimsPopWindowListener implements View.OnClickListener {
    //弹出窗口
    private PopupWindow window;

    //弹出窗口构造器
    public ClickDimsPopWindowListener(PopupWindow window) {
        this.window = window;
    }

    /**
     * 点击时关闭弹出窗口
     *
     * @param v
     */
    @Override
    public void onClick(View v) {
        window.dismiss();
    }
}
